@import "src/common/styles/base";

.major-detail-page {
  .info-box {
    background: #45c68b;
    width: 690px;
    margin: 0 auto;
    border-radius: 20px;
    position: relative;
    padding-bottom: 64px;

    padding-top: 18px;
    overflow: hidden;
    .info-box-top {
      display: flex;
      align-items: center;
      padding: 0 30px;
      .logo {
        width: 130px;
        height: 130px;
        display: block;
        margin-right: 20px;
        margin-bottom: 10px;
      }
      .name {
        font-size: 30px;
        font-weight: 600;
        color: rgba(255, 255, 255, 1);
        line-height: 42px;
      }
    }

    .desc {
      padding: 0 30px;
      font-size: 24px;
      font-weight: 400;
      color: rgba(255, 255, 255, 1);
      line-height: 33px;
      transition: all 0.3s;
      height: 66px;
      overflow: hidden;
      &__open {
        height: auto;
        max-height: 320px;
        overflow-y: scroll;
      }
    }

    .toggle {
      position: absolute;
      bottom: 0;
      width: 690px;
      height: 50px;
      background: linear-gradient(
        90deg,
        rgba(76, 202, 121, 1) 0%,
        rgba(67, 197, 144, 1) 100%
      );
      border-radius: 0px 0px 10px 10px;
      opacity: 0.5;

      display: flex;
      align-items: center;
      justify-content: center;
      .icon {
        width: 24px;
        height: 24px;
        display: block;
        margin-right: 5px;
      }
      .text {
        font-size: 24px;
        font-weight: 400;
        color: rgba(255, 255, 255, 1);
        line-height: 33px;
      }
    }
  }

  .tabs {
    display: flex;
    justify-content: space-around;
    width: 690px;
    margin-top: 9px;
    margin-bottom: 2px;
    .tab {
      font-size: 32px;
      font-weight: 600;
      color: rgba(51, 51, 51, 1);
      line-height: 45px;
      padding: 0 16px;
      transition: all 0.3s ease-in-out;
      &__active {
        color: #45c68b;
        .line {
          height: 4px;
          margin-top: 20px;
          background: linear-gradient(
            90deg,
            rgba(76, 202, 121, 1) 0%,
            rgba(67, 197, 144, 1) 100%
          );
          border-radius: 2px;
        }
      }
    }
  }
}
